package com.visitor.demo1;

import com.visitor.demo1.impl.SubEast1;
import com.visitor.demo1.impl.SubWest1;
import com.visitor.demo1.impl.SubWest2;

public class Test {

	public static void main(String[] args) {
		// 组合1
		East east = new SubEast1();
		West west = new SubWest1();
		east.goEast(west);
		// 组合2
		east = new SubEast1();
		west = new SubWest2();
		east.goEast(west);
	}

}
